package com.wanmait.heating.mapper;

import com.wanmait.heating.pojo.Super;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SuperMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(Super record);

    Super checkLogin(@Param("name") String name, @Param("password") String password);

    int insertSelective(Super record);

    Super selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Super record);

    int updateByPrimaryKey(Super record);

    //验证管理员的名字
    Boolean checkAdminName(@Param("name")String name);

    //增加管理员
    void addAdmin(@Param("name")String name, @Param("password")String password);
}